#include<stdio.h>
int main()
{
    	int n;
	int i=0,j;
	scanf("%d",&n);
	for(j=n;j>0;){
    
		i*=10;
		i+=j%10;
		j/=10;
	}
	if(n==i) printf("Yes\n");
	else printf("No\n");
return 0;
}